<?php
mysql_connect("localhost","root","");
mysql_select_db("susudo");


$query="SELECT * FROM users";
$result=mysql_query($query);


echo $result;
echo "<br>";
print_r ($result);
echo "<br>";
echo mysql_num_rows($result);
echo "<br>";

while($row=mysql_fetch_assoc($result)){
    echo "<pre>";
    print_r($row);
    echo "</pre>";
}



$username = "12312";
$password = md5("12312");
$email = "123123";

$query="INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES (NULL, '$username', '$password', '$email');";

mysql_query($query);

mysql_close();





?>
